Skip to content

Update Dockerfile#1

Open
Ivanov-Dmitry-programmist wants to merge 2 commits intomainfrom
update1
Open

Update Dockerfile#1
Ivanov-Dmitry-programmist wants to merge 2 commits intomainfrom
update1

Conversation

@Ivanov-Dmitry-programmist
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дмитрий

работа теперь оформлена правильно

по самой работе есть что поправить

Comment thread 42-docker-final-main/Dockerfile Outdated
@@ -1 +1,17 @@
FROM golang:1.23.3
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше брать образ с нужной версией go 1.22.0

Comment thread 42-docker-final-main/Dockerfile Outdated

RUN go mod download

RUN go get github.com/go-chi/chi/v5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это лишнее go mod download все сделает

Comment thread 42-docker-final-main/Dockerfile Outdated

CMD ["/my_app"]

RUN go mod tidy
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это точно тут лишнее и уже есть go mod download

Comment thread 42-docker-final-main/Dockerfile Outdated

COPY *.go ./

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /my_app
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

забыл скоприровать бд без нее работать приложение не будет

Copy link
Copy Markdown

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дмитрий

все ок - работа принята

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants